package com.dfqy.dao;

import com.dfqy.pojo.Appoint;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * Author : atyushu
 * Package : com.dfqy.dao
 * ClassName : AppointDao
 * Create : 2023/8/1 - 11:40
 * Version : v1.0
 * Description : The interface of dao for appoint.
 */
@Component
public interface AppointDao {

    int insert(Appoint appoint);

    int delete(long... id);

    int update(Appoint appoint);

    Appoint getById(long id);

    int countByLike(@Param("phone") String phone, @Param("addrbranch") String addrbranch, @Param("courseof") String courseof, @Param("posttimeStart") Date posttimeStart, @Param("posttimeEnd") Date posttimeEnd, @Param("uname") String uname);

    List<Appoint> page(@Param("no") int pageNo, @Param("size") int pageSize, @Param("phone") String phone, @Param("addrbranch") String addrbranch, @Param("courseof") String courseof, @Param("posttimeStart") Date posttimeStart, @Param("posttimeEnd") Date posttimeEnd, @Param("uname") String uname);
}
